package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student("张光",20,"北京","三班","23");
        zg.study();
        zg.sleep();
        zg.sayHi();
        Teacher zl = new Teacher("赵亮",30,"河北",4000);
        zl.teach();
        zl.sayHi();
        Doctor zs = new Doctor("张三",44,"四川","主任医师");
        zs.cut();
        zs.sayHi();
    }
}
